'use strict';
const db = uniCloud.database()
const goodsCollection = db.collection('shopCart')
exports.main = async (event, context) => {
	const docList = await goodsCollection.get()
	for(var i=0;i<docList.data.length;i++){
	let	res = await goodsCollection.doc(docList.data[i]._id).remove()
	}
	return event
};
